@extends('app')
@section('content')
	@foreach ($archives as $archive)
		<article class="post">
		<h1 class="post_title"><a href="{{ url('archive',$archive->id) }}">{{ $archive->title }}</a></h1>
		<hr>
		<div class="post_content">
		{!! $archive->html !!}
		</div>
		<hr>
		<div class="post_info">
			<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> <a href="{{ url('category',$archive->category_id) }}"> {{ $archive->category->category_name }} </a>
			<span class="glyphicon glyphicon-time" aria-hidden="true"></span> {{ $archive->created_at }} 
		</div>
		</article>
	@endforeach

	{!! $archives->render() !!}
@endsection
